package com.action;

import com.dao.ITabDepositscheduleDao;
import com.dao.ITabEmbeddedpipestatisticsDao;
import com.opensymphony.xwork2.ModelDriven;
import com.po.TabDepositschedule;
import com.po.TabEmbeddedpipestatistics;

public class TabEmbeddedpipestatisticsAction extends BaseAction implements ModelDriven<TabEmbeddedpipestatistics>
{

	TabEmbeddedpipestatistics form = new TabEmbeddedpipestatistics();
	public TabEmbeddedpipestatistics getModel(){
		return form;
	}
	private ITabEmbeddedpipestatisticsDao tabEmbeddedpipestatisticsDao;
	public void setTabEmbeddedpipestatisticsDao(ITabEmbeddedpipestatisticsDao tabEmbeddedpipestatisticsDao){
		this.tabEmbeddedpipestatisticsDao = tabEmbeddedpipestatisticsDao;
	}

	public String findByList(){
		form.setPager_count(tabEmbeddedpipestatisticsDao.findByCount(form));
		form.setTabeslist(tabEmbeddedpipestatisticsDao.findByList(form));
		return SUCCESS;
	}

	public String deleteObject(){
		tabEmbeddedpipestatisticsDao.deleteObejct(form);
		findByList();
		return SUCCESS;
	}

	public String updateObject(){
		tabEmbeddedpipestatisticsDao.updateObject(form);
		return "update";
	}



}
